400 |
How can I display the column using currency format and enlarge the font for certain values
|
399 |
How can I get the number of occurrences of a specified string in the cell
with ComboBox1 do begin Columns.Add(''); with (IUnknown(Columns.Add('occurrences')) as EXCOMBOBOXLib_TLB.Column) do begin ComputedField := 'lower(%0) count ''o'''; FormatColumn := '''contains '' + value + '' of \''o\'' chars'''; end; with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1 oooof the root'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'Child 3'); ExpandItem[h] := True; end; end |
398 |
How can I display dates in my format
|
397 |
How can I display dates in short format
|
396 |
How can I display dates in long format
|
395 |
How can I display only the right part of the cell
with ComboBox1 do begin Columns.Add(''); with (IUnknown(Columns.Add('Right')) as EXCOMBOBOXLib_TLB.Column) do begin ComputedField := '%0 right 2'; FormatColumn := '''"'' + value + ''"'''; end; with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'SChild 3'); ExpandItem[h] := True; end; end |
394 |
How can I display only the left part of the cell
with ComboBox1 do begin Columns.Add(''); (IUnknown(Columns.Add('Left')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '%0 left 2'; with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'SChild 3'); ExpandItem[h] := True; end; end |
393 |
How can I display true or false instead 0 and -1
with ComboBox1 do begin (IUnknown(Columns.Add('Boolean')) as EXCOMBOBOXLib_TLB.Column).FormatColumn := 'value != 0 ? ''true'' : ''false'''; with Items do begin AddItem(OleVariant(True)); AddItem(OleVariant(False)); AddItem(OleVariant(True)); AddItem(OleVariant(0)); AddItem(OleVariant(1)); end; end |
392 |
How can I display icons or images instead numbers
with ComboBox1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (IUnknown(Columns.Add('Icons')) as EXCOMBOBOXLib_TLB.Column) do begin Def[EXCOMBOBOXLib_TLB.exCellCaptionFormat] := OleVariant(1); FormatColumn := '''The cell displays the icon <img>''+value+''</img> instead '' + value'; end; with Items do begin AddItem(OleVariant(1)); AddItem(OleVariant(2)); AddItem(OleVariant(3)); end; end |
391 |
How can I display the column using currency
|
390 |
How can I display the currency only for not empty cells
|
389 |
Is there a function to display the number of days between two date including the number of hours
|
388 |
Is there a function to display the number of days between two date including the number of hours
|
387 |
How can I display the number of days between two dates
|
386 |
How can I get second part of the date
|
385 |
How can I get minute part of the date
|
384 |
How can I check the hour part only so I know it was afternoon
with ComboBox1 do begin ConditionalFormats.Add('hour(%0)>=12',Null).Bold := True; Columns.Add('Date'); (IUnknown(Columns.Add('Hour')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'hour(%0)'; with Items do begin AddItem('1/11/2001 10:00:00 AM'); AddItem('2/22/2002 11:00:00 AM'); AddItem('3/13/2003 12:00:00 PM'); AddItem('4/14/2004 1:00:00 PM'); end; end |
383 |
What about a function to get the day in the week, or days since Sunday
|
382 |
Is there any function to get the day of the year or number of days since January 1st
|
381 |
How can I display only the day of the date
|
380 |
How can I display only the month of the date
|
379 |
How can I get only the year part from a date expression
|
378 |
Can I convert the expression to date
|
377 |
Can I convert the expression to a number, double or float
|
376 |
How can I display dates in long format
|
375 |
How can I display dates in short format
|
374 |
How can I display the time only of a date expression
|
373 |
Is there any function to display currencies, or money formatted as in the control panel
|
372 |
How can I convert the expression to a string so I can look into the date string expression for month's name
|
371 |
Can I display the absolute value or positive part of the number
|
370 |
Is there any function to get largest number with no fraction part that is not greater than the value
|
369 |
Is there any function to round the values base on the .5 value
|
368 |
How can I get or display the integer part of the cell
|
367 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
with ComboBox1 do begin (IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'proper(%0)'; with Items do begin h := AddItem('root'); InsertItem(h,Null,'child child'); InsertItem(h,Null,'child child'); InsertItem(h,Null,'child child'); ExpandItem[h] := True; end; end |
366 |
Is there any option to display cells in uppercase
with ComboBox1 do begin (IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'upper(%0)'; with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'Chld 3'); ExpandItem[h] := True; end; end |
365 |
Is there any option to display cells in lowercase
with ComboBox1 do begin (IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'lower(%0)'; with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'Chld 3'); ExpandItem[h] := True; end; end |
364 |
How can I mark the cells that has a specified type, ie strings only
with ComboBox1 do begin ConditionalFormats.Add('type(%0) = 8',Null).ForeColor := $ff; Columns.Add(''); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,OleVariant(2)); InsertItem(h,Null,'Chld 3'); ExpandItem[h] := True; end; end |
363 |
How can I bold the items that contains data or those who displays empty strings
with ComboBox1 do begin ConditionalFormats.Add('not len(%1)=0',Null).Bold := True; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); hC := InsertItem(h,Null,'Child 2'); CellCaption[OleVariant(hC),OleVariant(1)] := '1'; InsertItem(h,Null,'Child 3'); ExpandItem[h] := True; end; end |
362 |
Can I change the background color for items or cells that contains a specified string
with ComboBox1 do begin ConditionalFormats.Add('%0 contains ''hi''',Null).BackColor := $ff; Columns.Add(''); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'Chld 3'); ExpandItem[h] := True; end; end |
361 |
Is there any option to change the fore color for cells or items that ends with a specified string
with ComboBox1 do begin ConditionalFormats.Add('%0 endwith ''22''',Null).ForeColor := $ff; Columns.Add(''); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 1.22'); InsertItem(h,Null,'Child 2.22'); ExpandItem[h] := True; end; end |
360 |
How can I highlight the cells or items that starts with a specified string
with ComboBox1 do begin ConditionalFormats.Add('%0 startwith ''C''',Null).Underline := True; Columns.Add(''); with Items do begin h := AddItem('Root'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); InsertItem(h,Null,'SChild 3'); ExpandItem[h] := True; end; end |
359 |
How can I change the background color or the visual appearance using ebn for a particular column
with ComboBox1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); with Columns do begin Add('Column 1'); (IUnknown(Add('Column 2')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exHeaderBackColor] := OleVariant(16777216); (IUnknown(Add('Column 3')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exHeaderBackColor] := OleVariant(16777471); Add('Column 4'); end; end |
358 |
How can I change the background color for a particular column
|
357 |
Does your control support prompt feature
with ComboBox1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); AutoComplete := False; (IUnknown(Columns.Add('Column 1')) as EXCOMBOBOXLib_TLB.Column).Prompt := '<img>1</img><i><fgcolor=808080>type to search</fgcolor></i>'; Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); end |
356 |
How can I display the column's header using multiple lines
with ComboBox1 do begin HeaderHeight := 128; HeaderSingleLine := False; (IUnknown(Columns.Add('This is just a column that should break the header.')) as EXCOMBOBOXLib_TLB.Column).Width := 32; Columns.Add('This is just another column that should break the header.'); end |
355 |
How can I sort the value gets listed in the drop down filter window
with ComboBox1 do begin LinesAtRoot := EXCOMBOBOXLib_TLB.exLinesAtRoot; MarkSearchColumn := False; Description[EXCOMBOBOXLib_TLB.exFilterBarAll] := ''; Description[EXCOMBOBOXLib_TLB.exFilterBarBlanks] := ''; Description[EXCOMBOBOXLib_TLB.exFilterBarNonBlanks] := ''; with (IUnknown(Columns.Add('P1')) as EXCOMBOBOXLib_TLB.Column) do begin DisplayFilterButton := True; DisplayFilterPattern := False; FilterList := EXCOMBOBOXLib_TLB.exSortItemsDesc; end; with (IUnknown(Columns.Add('P2')) as EXCOMBOBOXLib_TLB.Column) do begin DisplayFilterButton := True; DisplayFilterPattern := False; FilterList := EXCOMBOBOXLib_TLB.exSortItemsAsc; end; with Items do begin h := AddItem('Z3'); CellCaption[OleVariant(h),OleVariant(1)] := 'C'; CellCaption[OleVariant(InsertItem(h,Null,'Z1')),OleVariant(1)] := 'B'; CellCaption[OleVariant(InsertItem(h,Null,'Z2')),OleVariant(1)] := 'A'; ExpandItem[h] := True; end; end |
354 |
Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area
with ComboBox1 do begin (IUnknown(Columns.Add('Default')) as EXCOMBOBOXLib_TLB.Column).AllowEditContextMenu := False; Items.AddItem(OleVariant(0)); Items.AddItem(OleVariant(1)); Items.AddItem(OleVariant(2)); end |
353 |
How can I align the text/caption on the scroll bar
with ComboBox1 do begin ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLowerBackPart] := 'left'; ScrollPartCaptionAlignment[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLowerBackPart] := EXCOMBOBOXLib_TLB.LeftAlignment; ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exUpperBackPart] := 'right'; ScrollPartCaptionAlignment[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exUpperBackPart] := EXCOMBOBOXLib_TLB.RightAlignment; ColumnAutoResize := False; Columns.Add(1); Columns.Add(2); Columns.Add(3); Columns.Add(4); Columns.Add(5); Columns.Add(6); end |
352 |
Does you control support RTL languages or if there is a property RightToLeft
with ComboBox1 do begin RightToLeft := True; ItemsAllowSizing := EXCOMBOBOXLib_TLB.exResizeItem; DrawGridLines := EXCOMBOBOXLib_TLB.exHLines; LinesAtRoot := EXCOMBOBOXLib_TLB.exLinesAtRoot; ScrollBySingleLine := True; DefaultItemHeight := 64; with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do begin Alignment := EXCOMBOBOXLib_TLB.RightAlignment; HeaderAlignment := EXCOMBOBOXLib_TLB.RightAlignment; EditAlignment := EXCOMBOBOXLib_TLB.RightAlignment; end; with Items do begin AddItem('Item 1'); ItemHeight[InsertItem(AddItem('Parent'),Null,'Item 2')] := 48; AddItem('Item 3'); ExpandItem[ItemByIndex[1]] := True; end; end |
351 |
How do I enable resizing all the items at runtime
with ComboBox1 do begin ItemsAllowSizing := EXCOMBOBOXLib_TLB.exResizeAllItems; DrawGridLines := EXCOMBOBOXLib_TLB.exHLines; Columns.Add('Column'); Items.AddItem('Item 1'); with Items do begin ItemHeight[AddItem('Item 2')] := 48; end; Items.AddItem('Item 3'); end |
350 |
How can I remove the filter
with ComboBox1 do begin with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do begin DisplayFilterButton := True; FilterType := EXCOMBOBOXLib_TLB.exBlanks; end; ApplyFilter(); ClearFilter(); end |
349 |
How do I display the icons being selected in the control's label
with ComboBox1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); Columns.Add('Column'); with Items do begin CellImage[OleVariant(AddItem('Image 1')),OleVariant(0)] := 1; CellImage[OleVariant(AddItem('Image 2')),OleVariant(0)] := 2; CellImage[OleVariant(AddItem('Image 3')),OleVariant(0)] := 3; end; AssignEditImageOnSelect[0] := True; Value := 'Image 2'; end |
348 |
How do I select a value
with ComboBox1 do begin IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; Value := 'Root 1.1'; end |
347 |
How do I select a value
with ComboBox1 do begin IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; Select[OleVariant(1)] := 'Root 1.2'; end |
346 |
How do change the visual appearance for the drop down border, using EBN
with ComboBox1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); DropDownBorder := EXCOMBOBOXLib_TLB.AppearanceEnum($1000000); end |
345 |
How do I remove the drop down's border
|
344 |
How can I change the foreground color for edit controls
with ComboBox1 do begin ForeColorEdit := RGB(255,0,0); IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; Select[OleVariant(0)] := 'Root 1.1'; end |
343 |
How can I change the background color for edit controls
with ComboBox1 do begin BackColorEdit := RGB(255,0,0); IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; Select[OleVariant(0)] := 'Root 1.1'; end |
342 |
How can I hide the drop down buttons when the control loses the focus
with ComboBox1 do begin HideDropDownButton := True; IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; end |
341 |
How can I ensure that the drop down portions doesn't show partial items
with ComboBox1 do begin IntegralHeight := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; end |
340 |
How can I close the drop down window when user double clicks it
with ComboBox1 do begin CloseOnDblClk := True; LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot; TreeColumnIndex := 1; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin h := AddItem('Root 1.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2'; ExpandItem[h] := True; h := AddItem('Root 2.1'); CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2'; CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2'; end; end |
339 |
How do I get the handle of the drop down window
|
338 |
How do I specify the height of the control's label
|
337 |
The control selects the portion of text that doesn't match with the selected item. How can I avoid that
with ComboBox1 do begin AutoSelect := False; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
336 |
How can I show the drop down window as soon as user starts typing in the control
with ComboBox1 do begin AutoDropDown := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
335 |
How do I change the text in the edit or label area
|
334 |
How do I lock or make read-only the control
with ComboBox1 do begin Locked := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
333 |
How do I let user to resize only the height of the drop down window, at runtime
with ComboBox1 do begin AllowSizeGrip := True; AllowHResize := False; MinWidthList := 100; MinHeightList := 100; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
332 |
How do I let user to resize only the width of the drop down window, at runtime
with ComboBox1 do begin AllowSizeGrip := True; AllowVResize := False; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
331 |
How do I let user to resize the drop down window, at runtime
with ComboBox1 do begin AllowSizeGrip := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
330 |
How do I specify the height of the drop down window
with ComboBox1 do begin HeightList[Null] := 400; MinWidthList := 100; AllowSizeGrip := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
329 |
How do I specify the minimum height of the drop down window
with ComboBox1 do begin MinHeightList := 100; AllowSizeGrip := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
328 |
How do I specify the width of the drop down window
with ComboBox1 do begin WidthList[Null] := 100; AllowSizeGrip := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
327 |
How do I specify the minimum width of the drop down window
with ComboBox1 do begin MinWidthList := 100; AllowSizeGrip := True; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
326 |
I have multiple columns, how can I display a single edit in the control's label
with ComboBox1 do begin SingleEdit := True; Columns.Add('Column 1'); Columns.Add('Column 2'); with Items do begin CellCaption[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'SubItem 1'; CellCaption[OleVariant(AddItem('Item 2')),OleVariant(1)] := 'SubItem 2'; CellCaption[OleVariant(AddItem('Item 3')),OleVariant(1)] := 'SubItem 3'; end; end |
325 |
How do I turn off the auto complete feature
with ComboBox1 do begin AutoComplete := False; Columns.Add('Column'); with Items do begin AddItem('Item 3'); AddItem('Item 1'); AddItem('Item 2'); end; end |
324 |
The control supports three styles: Simple, DropDown and DropDownList. How can I change the style
|
323 |
Is there any option to align the header to the left and the data to the right
with ComboBox1 do begin (IUnknown(Columns.Add('Left')) as EXCOMBOBOXLib_TLB.Column).Alignment := EXCOMBOBOXLib_TLB.LeftAlignment; with (IUnknown(Columns.Add('Right')) as EXCOMBOBOXLib_TLB.Column) do begin Alignment := EXCOMBOBOXLib_TLB.RightAlignment; HeaderAlignment := EXCOMBOBOXLib_TLB.RightAlignment; EditAlignment := EXCOMBOBOXLib_TLB.RightAlignment; end; with Items do begin CellCaption[OleVariant(AddItem('left')),OleVariant(1)] := 'right'; end; end |
322 |
How do I change the control's border, using your EBN files
with ComboBox1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Appearance := EXCOMBOBOXLib_TLB.AppearanceEnum($1000000); end |
321 |
Can I change the default border of the tooltip, using your EBN files
with ComboBox1 do begin ToolTipDelay := 1; ToolTipWidth := 364; VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXCOMBOBOXLib_TLB.exToolTipAppearance] := $1000000; (IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
320 |
Can I change the background color for the tooltip
with ComboBox1 do begin ToolTipDelay := 1; ToolTipWidth := 364; Background[EXCOMBOBOXLib_TLB.exToolTipBackColor] := $ff; (IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
319 |
Does the tooltip support HTML format
|
318 |
Can I change the forecolor for the tooltip
with ComboBox1 do begin ToolTipDelay := 1; ToolTipWidth := 364; Background[EXCOMBOBOXLib_TLB.exToolTipForeColor] := $ff; (IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column'; end |
317 |
Can I change the foreground color for the tooltip
|
316 |
How can I merge cells
with ComboBox1 do begin DrawGridLines := EXCOMBOBOXLib_TLB.exAllLines; MarkSearchColumn := False; Columns.Add('C1'); Columns.Add('C2'); Columns.Add('C3'); with Items do begin h := AddItem('this cell merges the first two columns'); CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(1); h := AddItem(Null); CellCaption[OleVariant(h),OleVariant(1)] := 'this cell merges the last two columns'; CellMerge[OleVariant(h),OleVariant(1)] := OleVariant(2); h := AddItem('this cell merges the all three columns'); CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(1); CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(2); h := AddItem('this draws a divider item'); ItemDivider[h] := 0; end; end |
315 |
How can I merge cells
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem('This is bit of text merges all cells in the item'); ItemDivider[h] := 0; CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; end; end |
314 |
How can I change the color for separator / dividers items
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; ScrollBySingleLine := False; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem(Null); ItemDivider[h] := 0; ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine; ItemDividerLineAlignment[h] := EXCOMBOBOXLib_TLB.DividerCenter; ItemHeight[h] := 6; SelectableItem[h] := False; h := AddItem('Cell 2'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; end; end |
313 |
How can I add separator - dividers items
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; ScrollBySingleLine := False; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem(Null); ItemDivider[h] := 0; ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine; ItemDividerLineAlignment[h] := EXCOMBOBOXLib_TLB.DividerCenter; ItemHeight[h] := 6; SelectableItem[h] := False; h := AddItem('Cell 2'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; end; end |
312 |
Can I change the style of the line being displayed by a divider item
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; ScrollBySingleLine := False; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem('This is bit of text that''s displayed on the entire item, divider.'); ItemDivider[h] := 0; ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine; CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; ItemHeight[h] := 24; end; end |
311 |
Can I remove the line being displayed by a divider item
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem('This is bit of text that''s displayed on the entire item, divider.'); ItemDivider[h] := 0; ItemDividerLine[h] := EXCOMBOBOXLib_TLB.EmptyLine; CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; end; end |
310 |
How can I display a divider item, merging all cells
with ComboBox1 do begin MarkSearchColumn := False; TreeColumnIndex := -1; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; h := AddItem('This is bit of text that''s displayed on the entire item, divider.'); ItemDivider[h] := 0; CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; end; end |
309 |
How can I fix or lock items
with ComboBox1 do begin Columns.Add('Default'); with Items do begin LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 1; CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.'; ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exTop,0]] := $bac4c4; LockedItemCount[EXCOMBOBOXLib_TLB.exBottom] := 2; CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.'; ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]] := $bac4c4; CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,1]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.'; ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exBottom,1]] := $bababa; end; end |
308 |
How can I fix or lock an item on the bottom side of the control
with ComboBox1 do begin Columns.Add('Default'); with Items do begin LockedItemCount[EXCOMBOBOXLib_TLB.exBottom] := 1; CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]),OleVariant(0)] := 'This is a locked item, fixed to the bottom side of the control.'; h := AddItem('Root 1'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
307 |
How can I fix or lock an item on the top of the control
with ComboBox1 do begin Columns.Add('Default'); with Items do begin LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 1; CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.'; h := AddItem('Root 1'); InsertItem(h,Null,'Child 1'); InsertItem(h,Null,'Child 2'); ExpandItem[h] := True; end; end |
306 |
Is there any function to limit the height of the items when I display it using multiple lines
with ComboBox1 do begin ScrollBySingleLine := True; Columns.Add('C1'); Columns.Add('C2'); with Items do begin h := AddItem('Cell 1'); CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.'; CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; ItemMaxHeight[h] := 48; end; end |
305 |
Why I cannot center my cells in the column
|
304 |
How can I align the cell to the left, center or to the right
with ComboBox1 do begin TreeColumnIndex := -1; DrawGridLines := EXCOMBOBOXLib_TLB.exRowLines; Columns.Add('Default'); with Items do begin CellHAlignment[OleVariant(AddItem('left')),OleVariant(0)] := EXCOMBOBOXLib_TLB.LeftAlignment; CellHAlignment[OleVariant(AddItem('center')),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; CellHAlignment[OleVariant(AddItem('right')),OleVariant(0)] := EXCOMBOBOXLib_TLB.RightAlignment; end; end |
303 |
How do I apply HTML format to a cell
with ComboBox1 do begin TreeColumnIndex := -1; Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); HTMLPicture['p1'] := 'c:\exontrol\images\zipdisk.gif'; HTMLPicture['p2'] := 'c:\exontrol\images\auction.gif'; Columns.Add('Default'); with Items do begin h := AddItem('The following item shows some of the HTML format supported:'); CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment; h := AddItem('<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u' + '>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor' + '</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> '); CellCaptionFormat[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML; CellSingleLine[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap; end; end |
302 |
How can I change the font for a cell
|
301 |
How can I change the font for a cell
|